<?php

class UserBaseC extends FrontBaseC {
    public $layout = 'theme.views.layouts.frontContent';
    public $menberMenus;
    public function init() {
        parent::init();
        //会员中心导航菜单
        if(Yii::app()->user->Type == 1){
            //商家
            $this->menberMenus = array(
                array(
                    'label' => '<i></i>> 修改资料',
                    'url' => array('/user/member/update'),
                    'itemOptions' => array('class' => 'con'),
                    'template' => '<i></i>{menu}'
                ),
                array(
                    'label' => '<i></i>> 我的消息',
                    'url' => array('/user/member/message'),
                    'itemOptions' => array('class' => 'con'),
                    'template' => '<i></i>{menu}'
                ),
                array(
                    'label' => '<i></i>> 报名列表',
                    'url' => array('/user/baoming'),
                    'itemOptions' => array('class' => 'con'),
                    'template' => '<i></i>{menu}'
                ),
                array(
                    'label' => '<i></i>> 我的入驻',
                    'url' => array('/user/merchantsSettled'),
                    'itemOptions' => array('class' => 'con'),
                    'template' => '<i></i>{menu}'
                ),
            );            
        }else{
            //买家
            $this->menberMenus = array(
                array(
                    'label' => '<i></i>> 修改资料',
                    'url' => array('/user/member/update'),
                    'itemOptions' => array('class' => 'con'),
                    'template' => '<i></i>{menu}'
                ),
                array(
                    'label' => '<i></i>> 我的收藏',
                    'url' => array('/user/member/collect'),
                    'itemOptions' => array('class' => 'con'),
                    'template' => '<i></i>{menu}'
                ),
                array(
                    'label' => '<i></i>> 我的消息',
                    'url' => array('/user/member/message'),
                    'itemOptions' => array('class' => 'con'),
                    'template' => '<i></i>{menu}'
                ),
            );
        }


    }
}
